<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/queue/tw-queue.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li><li class="navelem"><a class="el" href="dir_2411e5f01380066ac5b8370fb1d32f30.html">queue</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">tw-queue.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tw-queue_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="ross_8h.html">ross.h</a>&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// This is the API for the tw queue system</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// There are several queue implementations</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<a class="code" href="structtw__pq.html">tw_pq</a> *<a class="code" href="tw-queue_8h.html#a3e01ce907630af7763047e4d9ba14693">tw_pq_create</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-queue_8h.html#a02c7772297002106b68aae953b4ffb8c">tw_pq_enqueue</a>(<a class="code" href="structtw__pq.html">tw_pq</a> *, <a class="code" href="structtw__event.html">tw_event</a> *);</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<a class="code" href="structtw__event.html">tw_event</a> *<a class="code" href="tw-queue_8h.html#a54141adc19011d8df0fdb379a0ac038c">tw_pq_dequeue</a>(<a class="code" href="structtw__pq.html">tw_pq</a> *);</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<a class="code" href="ross_8h.html#a80b370bc538e17441aef6afaff852678">tw_stime</a> <a class="code" href="tw-queue_8h.html#a61ba93fb86d3d78d1f04ffb57e82dd95">tw_pq_minimum</a>(<a class="code" href="structtw__pq.html">tw_pq</a> *);</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keywordtype">void</span> <a class="code" href="tw-queue_8h.html#a40cbec95adbebb667f3490e7df86d044">tw_pq_delete_any</a>(<a class="code" href="structtw__pq.html">tw_pq</a> *, <a class="code" href="structtw__event.html">tw_event</a> *);</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="tw-queue_8h.html#abd2be98cc5f1df064aedeb86d6eb5ea7">tw_pq_get_size</a>(<a class="code" href="structtw__pq.html">tw_pq</a> *);</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="tw-queue_8h.html#a199c55c8307811563879596a347adf0c">tw_pq_max_size</a>(<a class="code" href="structtw__pq.html">tw_pq</a> *);</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#ifdef ROSS_QUEUE_kp_splay</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor"></span>tw_eventpq * tw_eventpq_create(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="tw-queue_8h_html_a61ba93fb86d3d78d1f04ffb57e82dd95"><div class="ttname"><a href="tw-queue_8h.html#a61ba93fb86d3d78d1f04ffb57e82dd95">tw_pq_minimum</a></div><div class="ttdeci">tw_stime tw_pq_minimum(tw_pq *)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00345">splay.c:345</a></div></div>
<div class="ttc" id="ross_8h_html_a80b370bc538e17441aef6afaff852678"><div class="ttname"><a href="ross_8h.html#a80b370bc538e17441aef6afaff852678">tw_stime</a></div><div class="ttdeci">double tw_stime</div><div class="ttdef"><b>Definition:</b> <a href="ross_8h_source.html#l00150">ross.h:150</a></div></div>
<div class="ttc" id="tw-queue_8h_html_a199c55c8307811563879596a347adf0c"><div class="ttname"><a href="tw-queue_8h.html#a199c55c8307811563879596a347adf0c">tw_pq_max_size</a></div><div class="ttdeci">unsigned int tw_pq_max_size(tw_pq *)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00357">splay.c:357</a></div></div>
<div class="ttc" id="tw-queue_8h_html_a02c7772297002106b68aae953b4ffb8c"><div class="ttname"><a href="tw-queue_8h.html#a02c7772297002106b68aae953b4ffb8c">tw_pq_enqueue</a></div><div class="ttdeci">void tw_pq_enqueue(tw_pq *, tw_event *)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00195">splay.c:195</a></div></div>
<div class="ttc" id="tw-queue_8h_html_a40cbec95adbebb667f3490e7df86d044"><div class="ttname"><a href="tw-queue_8h.html#a40cbec95adbebb667f3490e7df86d044">tw_pq_delete_any</a></div><div class="ttdeci">void tw_pq_delete_any(tw_pq *, tw_event *)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00288">splay.c:288</a></div></div>
<div class="ttc" id="structtw__event_html"><div class="ttname"><a href="structtw__event.html">tw_event</a></div><div class="ttdoc">Event Stucture. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00250">ross-types.h:250</a></div></div>
<div class="ttc" id="tw-queue_8h_html_abd2be98cc5f1df064aedeb86d6eb5ea7"><div class="ttname"><a href="tw-queue_8h.html#abd2be98cc5f1df064aedeb86d6eb5ea7">tw_pq_get_size</a></div><div class="ttdeci">unsigned int tw_pq_get_size(tw_pq *)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00351">splay.c:351</a></div></div>
<div class="ttc" id="ross_8h_html"><div class="ttname"><a href="ross_8h.html">ross.h</a></div></div>
<div class="ttc" id="tw-queue_8h_html_a54141adc19011d8df0fdb379a0ac038c"><div class="ttname"><a href="tw-queue_8h.html#a54141adc19011d8df0fdb379a0ac038c">tw_pq_dequeue</a></div><div class="ttdeci">tw_event * tw_pq_dequeue(tw_pq *)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00245">splay.c:245</a></div></div>
<div class="ttc" id="structtw__pq_html"><div class="ttname"><a href="structtw__pq.html">tw_pq</a></div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00036">splay.c:36</a></div></div>
<div class="ttc" id="tw-queue_8h_html_a3e01ce907630af7763047e4d9ba14693"><div class="ttname"><a href="tw-queue_8h.html#a3e01ce907630af7763047e4d9ba14693">tw_pq_create</a></div><div class="ttdeci">tw_pq * tw_pq_create(void)</div><div class="ttdef"><b>Definition:</b> <a href="splay_8c_source.html#l00054">splay.c:54</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
